<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>织梦社会化登录v1.1</title>
<link href="templets/admin/style/base.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="templets/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="templets/admin/js/layer/layer.js"></script>
</head>
<body topmargin="8">
	<table width="98%"  border="0" align="center" cellpadding="3" cellspacing="1">
		<form name="form1" id="form1" action="index.php?m=admin&a=set&dopost=save" method="post">
			<tr>
				<td height="20" colspan="2"><div class="breadcrumbs cl">
					<div class="lt"><i>织梦社会化登录</i> 基本设置</div>
				</div></td>
			</tr>
		
			<tr>
				<td width="200" align="right"><label>登录方式：</label></td>
				<td><input type='checkbox' name='login_type[]' <?php if(in_array('qq',$GLOBALS['_vars']['login_type'])){ ?>checked<?php } ?> value='qq'>qq登录 <input type='checkbox' name='login_type[]' <?php if(in_array('weixin',$GLOBALS['_vars']['login_type'])){ ?>checked<?php } ?> value='weixin'>微信登录 <input type='checkbox' <?php if(in_array('weibo',$GLOBALS['_vars']['login_type'])){ ?>checked<?php } ?> name='login_type[]' value='weibo'>微博登录
					<span style="color:#666"></span>
				</td>
			</tr>
			
			<tr>
			<td colspan="2">
				<table>
					<tr>
						<td width="200" align="right"><label>QQ登录AppId：</label></td>
						<td><input type='text' name='qq_appid' value='<?php if(isset($GLOBALS['_vars']['login_infos']['qq']['appid'])){echo $GLOBALS['_vars']['login_infos']['qq']['appid'];} ?>' style='width:220px'>
					<span style="color:#666"></span>
				</td>
					</tr>
					<tr>
						<td width="200" align="right"><label>QQ登录AppKey：</label></td>
						<td><input type='text' name='qq_appkey' value='<?php if(isset($GLOBALS['_vars']['login_infos']['qq']['appkey'])){echo $GLOBALS['_vars']['login_infos']['qq']['appkey'];} ?>' style='width:220px'>
					<span style="color:#666"></span>
				</td>
					</tr>
					<tr>
						<td width="200" align="right"><label>QQ登录回调地址：</label></td>
						<td><input type='text' name='qq_callback' value='<?php if(isset($GLOBALS['_vars']['login_infos']['qq']['callback'])){echo $GLOBALS['_vars']['login_infos']['qq']['callback'];} ?>' style='width:300px'>
					<span style="color:#666"></span>
				</td>
					</tr>
				</table>
			</td>
			</tr>
			
			<tr>
			<td colspan="2">
				<table>
					<tr>
						<td width="200" align="right"><label>微信登陆AppId：</label></td>
						<td><input type='text' name='wexin_appid' value='<?php if(isset($GLOBALS['_vars']['login_infos']['weixin']['appid'])){echo $GLOBALS['_vars']['login_infos']['weixin']['appid'];} ?>' style='width:220px'>
					<span style="color:#666"></span>
				</td>
					</tr>
					<tr>
						<td width="200" align="right"><label>微信登陆AppSecret：</label></td>
						<td><input type='text' name='wexin_appsecret' value='<?php if(isset($GLOBALS['_vars']['login_infos']['weixin']['appsecret'])){echo $GLOBALS['_vars']['login_infos']['weixin']['appsecret'];} ?>' style='width:220px'>
					<span style="color:#666"></span>
				</td>
					</tr>
					<tr>
						<td width="200" align="right"><label>微信登陆回调地址：</label></td>
						<td><input type='text' name='wexin_callback' value='<?php if(isset($GLOBALS['_vars']['login_infos']['weixin']['callback'])){echo $GLOBALS['_vars']['login_infos']['weixin']['callback'];} ?>' style='width:300px'>
					<span style="color:#666"></span>
				</td>
					</tr>
				</table>
			</td>
			</tr>
			
			<tr>
			<td colspan="2">
				<table>
					<tr>
						<td width="200" align="right"><label>微博AppKey：</label></td>
						<td><input type='text' name='weibo_appkey' value='<?php if(isset($GLOBALS['_vars']['login_infos']['weibo']['appkey'])){echo $GLOBALS['_vars']['login_infos']['weibo']['appkey'];} ?>' style='width:220px'>
					<span style="color:#666"></span>
				</td>
					</tr>
					<tr>
						<td width="200" align="right"><label>微博AppSecret：</label></td>
						<td><input type='text' name='weibo_appsecret' value='<?php if(isset($GLOBALS['_vars']['login_infos']['weibo']['appsecret'])){echo $GLOBALS['_vars']['login_infos']['weibo']['appsecret'];} ?>' style='width:220px'>
					<span style="color:#666"></span>
				</td>
					</tr>
					<tr>
						<td width="200" align="right"><label>微博回调地址：</label></td>
						<td><input type='text' name='weibo_callback' value='<?php if(isset($GLOBALS['_vars']['login_infos']['weibo']['callback'])){echo $GLOBALS['_vars']['login_infos']['weibo']['callback'];} ?>' style='width:300px'>
					<span style="color:#666"></span>
				</td>
					</tr>
				</table>
			</td>
			</tr>
			<tr>
				<td height="28" colspan="2">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="210">&nbsp;</td>
							<td><input class="cjxbtn cjxbtnBig cjxbtnGreen" type="submit" border="0" value="保存设置" /> <input class="cjxbtn cjxbtnBig cjxbtnGreen" id='make_html' type="button" border="0" value="生成代码" /></td>
						</tr>
					</table>
				</td>
			</tr>
			
		</form>
	</table>
	<div class='code'>
		<div class='code_input'>
			<div class="helptxt">
				复制代码到会员中心登录或者注册页面
			</div>
			<textarea id="code" name="code" rows="6" style="width:720px;height:300px;"></textarea>
		</div>
	</div>


</body>
</html>